package com.example.dao;

import com.example.entity.Users;
import com.example.entity.Volunteer;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VolunteerDao {
    List<Volunteer> findAllVolunteer();
    Volunteer findVolunteerByVolunteer_Id(@Param("volunteer_id") Integer volunteer_id);
    int insertVolunteer(Volunteer volunteer);
    int updateVolunteer(Volunteer volunteer);
    int deleteVolunteer(@Param("volunteer_id") Integer volunteer_id);
    List<Volunteer> searchVolunteer(@Param("name") String name, @Param("sex") String sex);
    void saveVolunteer(Volunteer volunteer);
     Volunteer findVolunteerByUserId(Users userid);
}


